package com.deer.wms.quartz.task;

import com.deer.wms.ware.task.service.PickTaskService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 定时任务调度测试
 * 
 * @author deer
 */
@Component("ryTask")
public class RyTask
{
    @Autowired
    private PickTaskService pickTaskService;

    public void ryParams(String params)
    {
        System.out.println("执行有参方法：" + params);

    }

    public void ryNoParams()
    {
        System.out.println("执行无参方法");
    }

    /**
     * 自动生成拣货任务
     */
    public void autoCreatePickTask(){
        System.out.println("执行autoCreatePickTask");
        pickTaskService.createPickTask(88);

    }
}